<?php

	include_once("./db.php"); 
	
	$r = db_select("SELECT c.Id, e.Name FROM combination c, element e where c.productId = e.id");
	
	while($item = mysql_fetch_array($r, MYSQL_ASSOC))
	{
		echo $item["Id"] . "---" . $item["Name"] . "<br>";
	}
		
	//print_r($ret);
	
?>